<?php
/**
 * Created by PhpStorm.
 * User: Martin.Wu
 * Date: 2020/5/8
 * Time: 9:46
 *
 */
namespace common\strategy;

abstract class StrategyAbstract
{

    /**
     * @param $data
     * @param $info
     * @return mixed
     *
     * 用于 if else 判断的代替算法(判断通常有空值判断，业务逻辑判断，状态判断)
     *
     * 有业务逻辑的，调用相应的业务逻辑处理，按最终的格式返回数据
     */
    abstract public function doAction($data);
}